<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>Document</title>
  </head>
  <body>
    <div class="loading"></div>
    <style>
      body {
        margin: 0;
        padding: 0;
      }
      .loading {
        width: 15px;
        height: 15px;
        position: absolute;
        top: 50%;
        left: 50%;
        background-color: black;
        transform: translate(-50%, -50%);
        /* transform: rotate(25deg); */
      }
      .loading::after {
        content: "";
        position: absolute;
        width: 15px;
        height: 15px;
        box-shadow: 15px 15px hotpink, -15px -15px green;
        animation: loading 1.5s infinite linear;
        border-radius: 15px;
        transform: translate(-50%, -50%) rotate(90deg);
      }
      .loading::before {
        content: "";
        position: absolute;
        width: 15px;
        height: 15px;
        box-shadow: 15px 15px orange, -15px -15px blueviolet;
        animation: loading 1.5s infinite linear;
        border-radius: 15px;
        transform: translate(-50%, -50%);
      }
      @keyframes loading {
        50% {
          height: 45px;
        }
      }
    </style>
  </body>
</html>
